#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int n;
    scanf("%d", &n);
    int i = 1;
    for (i = 1; i <= n; i++)
    {
        int j = 1;
        for (j = 1; j <= n - i; j++)
        {
            printf(" ");
        }

        int k = 1;
        for (k = 1; k <= 2 * i - 1; k++)
        {
            printf("*");
        }
        printf("\n");

    }
    for (i = 1; i <= n - 1; i++)
    {
        int j = 1;
        for (j = 1; j <= i; j++)
        {
            printf(" ");
        }
        int k = 1;
        for (k = 1; k <= 2 * n - 2 * i - 1; k++)
        {
            printf("*");
        }
        printf("\n");
    }

    return 0;
}